#
#RPAF_Enable      (On|Off)           - Enable reverse proxy add forward
#
#RPAF_ProxyIPs    127.0.0.1 10.0.0.1 - What IPs to adjust requests for
#
#RPAF_Header      X-Forwarded-For    - The header to use for the real IP
#                                      address.
#
#RPAF_SetHostName (On|Off)           - Update vhost name so ServerName &
#                                      ServerAlias work
#
#RPAF_SetHTTPS    (On|Off)           - Set the HTTPS environment variable
#                                      to the header value contained in
#                                      X-HTTPS, or X-Forwarded-HTTPS.
#
#RPAF_SetPort     (On|Off)           - Set the server port to the header
#                                      value contained in X-Port, or
#                                      X-Forwarded-Port.

<IfModule mod_rpaf.c>
  RPAF_Enable       On
  RPAF_ProxyIPs     <%= Array(@proxy_ips).join(" ") %>
  RPAF_Header       <%= @header %>
  <% if @sethostname -%>
  RPAF_SetHostName  On
  <% else -%>
  RPAF_SetHostName  Off
  <% end -%>
  RPAF_SetHTTPS     On
  RPAF_SetPort      On
</IfModule>
